<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a href="index.html">主页</a></li>
            <li>超级银行家</li>
            <li class="active"><strong>银行家组织管理</strong></li>
        </ol>
    </div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="orgInfoManagerCtrl">
    <form class="form-horizontal" id="form1">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel-body ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>组织管理</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">组织名称：</label>
                            <div class="col-sm-2">
                                    <select chosen  class="chosen-select" style="width:200px;" tabindex="4" ng-model="baseInfo.orgId" ng-options="x.orgId as x.orgName for x in orgInfoList">
                                        <option value=""></option>
                                    </select>
                            </div>
                            <label class="col-sm-2 control-label">开户状态：</label>
                            <div class="col-sm-2">
                                <select class="form-control" ng-model="baseInfo.accountStatus" ng-options="x.value as x.text for x in accountStatusList">
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-2 control-label">创建时间：</label>
                            <div class="col-sm-6">
                                <input id="d5221" class="form-control" type="datetime" ng-model="baseInfo.startCreateDate" onchange=""  style="width:auto;display:inline-block;"
                                       onFocus="var d5222=$dp.$('d5222');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'})"/>
                                ~
                                <input id="d5222" class="form-control" type="datetime"  ng-model="baseInfo.endCreateDate" onchange=""  style="width:auto;display:inline-block;"
                                       onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d5221\')}'})"/>
                            </div>
                        </div>-->

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-8">
                                <button class="btn btn-primary6 btn-mr20"  ng-click="query()" ng-disabled="submitting">查询</button>
                                <button class="btn btn-primary3 btn-mr20" type="button" ng-click="resetForm()">清空</button>
                                <a class="btn btn-primary5 btn-mr20" type="button" ui-sref="superBank.addOrgInfo"
                                        ng-show="hasPermit('superBank.addOrgInfo')">新增</a>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel-body ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>银行家组织列表</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="tposition">
                            <div class="gridStyle" ui-grid="orgInfoGrid" ui-grid-selection ui-grid-pagination
                                 ui-grid-resize-columns ui-grid-pinning></div>
                            <div ng-show="loadImg" class="timg"></div>
                        </div>
                        <div class="block m-t-xs">
                            <strong>备注1：</strong><br/>
                            开通代理业务、开通超级还业务：品牌商的代理成本即公司（平台）的收入，
                            品牌商的分润＝售价－品牌代理成本+剩余发放出去的奖金。
                        </div>
                        <div class="block m-t-xs">
                            <strong>备注2：</strong><br/>
                            品牌收款成本0.36%    发放总奖金扣率0.20%   用户手续费是0.6%，
                            发放总奖金=0.20%*交易额，
                            公司（平台）收入=0.36%*交易额，
                            品牌收入=（0.6%-0.36%-0.20%）*交易额+剩余未发放出去的奖金，
                            为了防止Ｖ２和超级银行家两边重复给OEＭ品牌商分润，V2那边OEM代理商收款成本设置成跟用户收款扣率一样。超级还同样处理。
                        </div>
                        <div class="block m-t-xs">
                            <strong>备注3：</strong><br/>
                            收款T0提现出款手续费，银行家这边4级代理不参与分润，
                            OEM参与分润，由V2处理，
                            信用卡还款的，银行家这边４级代理只参与分润还款手续费，
                            不参与每期代付手续费分润。OEM参与每期代付手续费分润，
                            由超级还处理。
                        </div>
                    </div>
                </div>
                <div style="height:30px;"></div>
            </div>
        </div>
    </form>
</div>


<!-- 主要内容
<div class="wrapper wrapper-content animated fadeIn"
	ng-controller="invitePrizesQueryCtrl">
	<div class="row">
		<div class="col-lg-12">
			<div class="ibox float-e-margins">
				<div class="ibox-content">
					<form class="form-horizontal" id="form1">
							<div class="col-lg-12">
								<div class="panel-body ibox float-e-margins">
									<div class="ibox-content">
										<div class="form-group">
											<label class="col-sm-2 control-label">邀请商户编号：</label>
											<div class="col-sm-2">
												<input type="text" class="form-control" ng-model='baseInfo.activeOrder'>
											</div>
											<label class="col-sm-2 control-label">创建时间：</label>
											<div class="col-sm-5">
												<input id="d5223" class="form-control" type="datetime" ng-model="baseInfo.activeTimeStart" onchange=""  style="width:auto;display:inline-block;"
													onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5224.focus();}})"/>
												~
												<input id="d5224" class="form-control" type="datetime"  ng-model="baseInfo.activeTimeEnd" onchange=""  style="width:auto;display:inline-block;"
													onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss'})"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">所属代理商/编号：</label>
											<div class="col-sm-2">
												<input type="text" class="form-control" ng-model='baseInfo.merchantN'>
											</div>
											<label class="col-sm-2 control-label">是否包含下级：</label>
											<div class="col-sm-2">
												<select name="autocomplete-select" id="autocomplete-select" ng-model="baseInfo.agentN" ng-options="x.value as x.text for x in agent"
													style="width: 100%" chosen chosen-data="agent" chosen-keyup="getStates" ng-change="changeAgentNode()" >
												</select>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">入账状态：</label>
											<div class="col-sm-2">
												<select class="form-control" ng-model='baseInfo.status' ng-change="hideActivityTime()" ng-options="x.value as x.text for x in activityStatus">
												</select>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2"></label>
											<div class="col-sm-10">
												<button class="btn btn-primary6 btn-mr20" type="button" ng-disabled="submitting"
													ng-click='query()' id="btnSubmit">查询</button>
													<button class="btn btn-primary3 btn-mr20" type="button"
													ng-click="resetForm()">清空</button>
												<button class="btn btn-new btn-mr20" type="button"
													ng-show="hasPermit('activity.liquidation')"
													ng-click="liquidationBatch()">批量入账</button>
											</div>
										</div>
									</div>
								</div>

								<div class="panel-body ibox float-e-margins">
									<div class="ibox-title">
										<h5>列表</h5>
									</div>
									<div class="ibox-content">
										<div class="form-group">
											<label class="col-sm-1 control-label">汇总</label>
											<div class="col-sm-2 checkbox">笔数：<span ng-bind="activityGrid.totalItems"></span></div>
											<div class="col-sm-2 checkbox">金额：<span ng-bind="totalAmount | currency:''"></span>元</div>
										</div>
										<div class="tposition">
											<div class="gridStyle" ui-grid="activityGrid"
												ui-grid-pagination ui-grid-selection ui-grid-resize-columns ui-grid-pinning></div>
											<div ng-show="loadImg" class="timg"></div>
										</div>
								</div>
								<div style="height: 50px"></div>
							</div>
						</div>
					</form>
					<form class="form-horizontal" id="form3" name="horizontalClear" novalidate>
					<div id="liquidationModal" class="modal fade" tabindex="-1" role="dialog">
						<div class="modal-dialog" style="width: 900px">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal">
										&times;</button>
									<h3 class="modal-title">清算核算</h3>
								</div>
								<div class="modal-body">
								<div class="form-group">
									<label class="col-sm-5 control-label">您正在执行清算核算，请确认无误后，再做以下选择：</label>
								</div>
								<div class="form-group" ng-show="selectNums>0">
									<label class="col-sm-5 control-label">满足需要清算核算的数据{{selectNums}}条</label>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">清算状态：</label>
									<div class="col-sm-3 checkbox ">
										<label ><input type="radio" name="liquidationStatus" ng-model="liquidationStatus" value="1" />同意</label>
										<label ><input type="radio" name="liquidationStatus" ng-model="liquidationStatus" value="2" />不同意</label>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-6">
										<button class="btn btn-primary btn-mr20" type="button" ng-click='submitClear()'
											 ng-disabled="submitting">提交</button>
											<button class="btn btn-primary8" type="button" ng-click='cancel()'
											>取消</button>
									</div>
								</div>
							</div>
						</div>
					</div>
					</div>
					</form>
					<form class="form-horizontal" id="form3" name="horizontalCheck" novalidate>
					<div id="accountCheckModal" class="modal fade" tabindex="-1" role="dialog">
						<div class="modal-dialog" style="width: 900px">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal">
										&times;</button>
									<h3 class="modal-title">财务核算</h3>
								</div>
								<div class="modal-body">
								<div class="form-group">
									<label class="col-sm-5 control-label">您正在执行财务核算，请确认无误后，再做以下选择：</label>
								</div>
								<div class="form-group" ng-show="selectNums>0">
									<label class="col-sm-5 control-label">满足需要财务核算的数据{{selectNums}}条</label>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">核算状态：</label>
									<div class="col-sm-3 checkbox ">
										<label ><input type="radio" name="accountCheckStatus" ng-model="accountCheckStatus" value="1" />同意</label>
										<label ><input type="radio" name="accountCheckStatus" ng-model="accountCheckStatus" value="2" />不同意</label>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-6">
										<button class="btn btn-primary btn-mr20" type="button" ng-click='submitCheck()'
											 ng-disabled="submitting">提交</button>
											<button class="btn btn-primary8" type="button" ng-click='cancel()'
											>取消</button>
									</div>
								</div>
							</div>
						</div>
					</div>
					</div>
					</form>
				</div>
			</div>
		</div>
	</div>

	<div style="height: 30px;"></div>
</div> -->